/*
package com.education.common.utils;


import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.IAcsClient;
import com.aliyuncs.dysmsapi.model.v20170525.SendSmsRequest;
import com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse;
import com.aliyuncs.profile.DefaultProfile;
import com.aliyuncs.profile.IClientProfile;
import com.netflix.client.ClientException;

public class  SendSmsUtil {

    //发送验证码
    public static SendSmsResponse sendSms(String phoneNumber, String verifyCode) throws ClientException, com.aliyuncs.exceptions.ClientException {

        //设置超时时间(不必修改)

        System.setProperty("sun.net.client.defaultConnectTimeout", "10000");
        //(不必修改)
        System.setProperty("sun.net.client.defaultReadTimeout", "10000");
        //初始化ascClient，("***"分别填写自己的AccessKey ID和Secret)
        IClientProfile profile = DefaultProfile.getProfile("cn-hangzhou", "LTAIBLrUuAGWDLWL", "60vpyzwEI1hNHPiJfqNpaarQnNPSKU");
        //(不必修改)
        try {
            DefaultProfile.addEndpoint("cn-hangzhou", "cn-hangzhou", "Dysmsapi", "dysmsapi.aliyuncs.com");
        } catch (com.aliyuncs.exceptions.ClientException e) {
            e.printStackTrace();
        }
        //(不必修改)
        IAcsClient acsClient = new DefaultAcsClient(profile);
        //组装请求对象(不必修改)
        SendSmsRequest request = new SendSmsRequest();
        //****处填写接收方的手机号码
        request.setPhoneNumbers(phoneNumber);
        //****填写已申请的短信签名
        request.setSignName("良月十三");
        //****填写获得的短信模版CODE
        request.setTemplateCode("SMS_171352259");
        //笔者的短信模版中有${code}, 因此此处对应填写验证码
        request.setTemplateParam("{\"code\":\""+verifyCode+"\"}");
        //不必修改
        return acsClient.getAcsResponse(request);
    }

}
*/
